﻿package engine.gui 
{
	import engine.managers.AssetManager;
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Shape;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author Jon Smelquist
	 */
	public class SideBar extends Sprite
	{
				
		[Embed(source='/assets/gui/sideBar.png')]
		protected static const SIDE_BAR:Class;
		
		public function SideBar() 
		{
			this.x = 640;
			this.y = 0;
			var background:Shape = new Shape();
			var source:Bitmap = new SIDE_BAR();
			var bitMapData:BitmapData = new BitmapData( source.width, source.height, true, 0x00000000 );
			bitMapData.draw(source);
			background.graphics.beginBitmapFill(bitMapData);
			background.graphics.drawRect( 0, 0, 160, 600);
			addChild(background);
		}
		
	}
	
}